import Vue from 'vue'
import Vuex from 'vuex'
import moment from 'moment'

Vue.use(Vuex)

export default new Vuex.Store({
  getters: {
    nowDate: (state) => moment(state.now).format('YYYY年MM月DD日')
  },
  state: {
    now: new Date()
  },
  mutations: {
    changeNow(state, n) {
      state.now = n
    }
  },
  actions: {
  },
  modules: {
  }
})
